package cn.itsource.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class OddNumUtil {

    public static String getoddNum(){
        //生成唯一单号
        SimpleDateFormat sdf=new SimpleDateFormat("yyyyMMddHHmmss");
        String newDate=sdf.format(new Date());
        StringBuilder result= new StringBuilder();
        Random random = new Random();
        for(int i=0;i<3;i++){
            result.append(random.nextInt(10));
        }

        return newDate + result.toString();
    }
}
